
package sartoservicesync.entities.presta.wrapper;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import sartoservicesync.entities.presta.PrestaCustomer;
import sartoservicesync.entities.presta.PrestaEntity;

@XmlRootElement(name = "prestashop")
@XmlAccessorType(XmlAccessType.FIELD)
public class PrestaCustomersWrapper extends PrestaMultiObjectWrapper{
	
	@XmlElementWrapper
	@XmlElement(name = "customer")
	private List<PrestaCustomer> customers = new ArrayList<PrestaCustomer>();

	public List<PrestaCustomer> getCustomers() {
		return customers;
	}

	public void setCustomers(List<PrestaCustomer> customers) {
		this.customers = customers;
	}

	@Override
	public List<? extends PrestaEntity> getResourceList() {
		return getCustomers();
	}
	
	

}
